<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- <%@include file="../../../common/taglib/taglib.jsp"%> --%>
<form id="pagerForm" method="post" action="${baseURL }/user/bankWay/list">
	<%@include file="../../common/pageParameter.jsp"%>
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="${baseURL }/user/bankWay/list" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>
						银行通道名称:
						<select name="bankWay" id="bankWay">
							<option value="">请选择</option>
							<c:forEach var="item" items="${bankWayEnums}">
								<option value="${item.name }" <c:if test="${item.name==rpUserBankWay.bankWay}">selected="selected"</c:if>>${item.desc }</option>
							</c:forEach>
						</select>
					</td>
					<td>
						<input type="hidden" name="userNo" value="${rpUserBankWay.userNo}" />
					</td>
					<td>
						<div class="buttonActive">
							<div class="buttonContent">
								<button title="查询" type="submit">查&nbsp;询</button>
							</div>
						</div>
					</td>
				</tr>
			</table>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li>
				<shiro:hasPermission name="user:bankWay:add">
					<a title="设置银行附属信息" class="add" rel="setyhfsxx" href="${baseURL }/user/bankWay/addUI?userNo=${rpUserBankWay.userNo}" target="navTab"> <span>设置银行附属信息</span>
					</a>
					<a title="上送信息到银行" class="add" rel="setyhfsxx" href="${baseURL }/user/bankWay/sendInfoToBankUI?userNo=${rpUserBankWay.userNo}" target="navTab"> <span>上送信息</span>
					</a>
				</shiro:hasPermission>
			</li>
			<li class="line">line</li>
		</ul>
	</div>
	<table class="table" width="101%" layoutH="109">
		<thead>
			<tr>
				<th width="5%">序号</th>
				<th width="15%">商户编号</th>
				<th width="10%">银行通道</th>
				<th width="10%">支付方式</th>
				<th width="10%">子商户编号</th>
				<th width="10%">子商户密钥</th>
				<th width="10%">附属信息</th>
				<th width="10%">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${pageBean.recordList}" varStatus="s">
				<tr>
					<td>${s.index + 1}</td>
					<td>${item.userNo}</td>
					<td>
						<c:forEach var="bankWayEnumsItem" items="${bankWayEnums}">
							<c:if test="${bankWayEnumsItem.name==item.bankWay}">${bankWayEnumsItem.desc }</c:if>
						</c:forEach>
					</td>
					<td>
						<c:forEach var="payTypeEnumsItem" items="${payTypeEnums}">
							<c:if test="${payTypeEnumsItem.name==item.payType}">${payTypeEnumsItem.desc }</c:if>
						</c:forEach>
					</td>
					<td>${item.subMerchantNo}</td>
					<td>${item.subMerchantPayKey}</td>
					<td>${item.bankDesc}</td>
					<td>
						<shiro:hasPermission name="user:bankWay:edit">
							<a title="编辑" target="navTab" href="${baseURL }/user/bankWay/editUI?userNo=${item.userNo}&bankWay=${item.bankWay}&payType=${item.payType}" style="color: blue;"> 编辑</a>
						</shiro:hasPermission>
					</td>
				</tr>
			</c:forEach>
			<c:if test="${pageBean.totalCount==0}">
				<tr>
					<td>暂无数据</td>
				</tr>
			</c:if>
		</tbody>
	</table>
	<%@include file="../../common/pageBar.jsp"%>
</div>
